import { PropsWithChildren, useRef, useContext, useCallback } from 'react';
import { Form } from 'antd';
import { Ctx } from './ctx';
export function FormContainer(props: PropsWithChildren<{}>) {
    let ctx = useContext(Ctx);
    return (
        <div className="spd-form">
            <Form onFinish={ctx.onSubmit}  form={ctx.formInstance}>
                {props.children}
            </Form>
        </div>
    );
}
